# Maintainer: Alexander F. Rødseth <xyproto@archlinux.org>

pkgname=shellharden
pkgver=4.3.0
pkgrel=1
pkgdesc='Bash linter and syntax highlighter'
arch=(loong64 x86_64)
url='https://github.com/anordal/shellharden'
license=(MPL)
makedepends=(git rust)
source=("git+$url#commit=bd24c99d5d1e76452b6d0749404837c1c95d923c") # tag: 4.3.0
b2sums=('SKIP')

build() {
  cd $pkgname
  cargo build --release
}

package() {
  cd $pkgname
  install -Dm755 target/release/$pkgname "$pkgdir/usr/bin/$pkgname"
  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

# getver: github.com/anordal/shellharden/blob/master/Cargo.toml
